package io.adrainty.bolee.security.models.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("tab_dept")
public class DeptBO extends BaseBO {

    @Serial
    private static final long serialVersionUID = 6657516432514760989L;

    @Schema(description = "父部门")
    @TableField(value = "parent_dept_no")
    private String parentDeptNo;

    @Schema(description = "部门编号")
    @TableField(value = "dept_no")
    private String deptNo;

    @Schema(description = "部门名称")
    @TableField(value = "dept_name")
    private String deptName;

    @Schema(description = "排序")
    @TableField(value = "sort_no")
    private Integer sortNo;

    @Schema(description = "部门负责人")
    @TableField(value = "leader_id")
    private Long leaderId;

    @Schema(description = "所属公司编号")
    @TableField(value = "company_no")
    private String companyNo;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;

}
